import request from '@/utils/request'

// 查询手机归属地列表
export function listNum(query) {
  return request({
    url: '/cms/num/list',
    method: 'get',
    params: query
  })
}

// 查询手机归属地详细
export function getNum(id) {
  return request({
    url: '/cms/num/' + id,
    method: 'get'
  })
}

// 新增手机归属地
export function addNum(data) {
  return request({
    url: '/cms/num',
    method: 'post',
    data: data
  })
}

// 修改手机归属地
export function updateNum(data) {
  return request({
    url: '/cms/num',
    method: 'put',
    data: data
  })
}

// 删除手机归属地
export function delNum(id) {
  return request({
    url: '/cms/num/' + id,
    method: 'delete'
  })
}
